import axios from '@/utils/request'

/* L频段信号交换矩阵相关API  */
// 设备状态查询
export function searchMachineStatusAPI (data) {
  return axios({
    url: '/machine/search',
    method: 'post',
    data
  })
}

// 设备远地控制
export function machineFarawayControlAPI (data) {
  return axios({
    url: '/machine/control/faraway',
    method: 'post',
    data
  })
}

// 设备指令控制
export function machineInstructionControlAPI (data) {
  return axios({
    url: '/machine/control/instruction',
    method: 'post',
    data
  })
}

// 设置命令前缀
export function prefixInstructionControlAPI (data) {
  return axios({
    url: '/machine/set/instruct/prefix',
    method: 'post',
    data
  })
}

// 更改连接IP端口
export function updateIpPortAPI (data) {
  return axios({
    url: '/machine/update/ip/port',
    method: 'post',
    data
  })
}

// 网络参数配置查询
export function netGetAPI (params) {
  return axios({
    url: '/net/get',
    method: 'get',
    params
  })
}

// 网络参数配置
export function netConfigAPI (data) {
  return axios({
    url: '/net/config',
    method: 'post',
    data
  })
}
